#include <cstdio>
#include <cmath>
#include <algorithm>
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
    int t, n;
    scanf("%d", &t);
    while (t--)
    {
        scanf("%d", &n);
        if (n % 2 == 0)
            printf("%d\n", n / 2 * (n / 2 - 1));
        else
            printf("%d\n", n / 2 * ((n + 1) / 2 - 1));
    }
    return 0;
}